<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	xmlns:c="http://java.sun.com/jstl/core" template="template/orderView.xhtml">

	<ui:define name="bottomButton">
		<h:commandButton styleClass="button larger"  rendered="#{orderViewAction.order.orderStatus eq 'VERIFIED'}"
			onclick="UI.instance.showDialog({id:'changeOrderShip', src:'/luyuan/sale/updateOrderForStorage.jsf?uuid=#{orderViewAction.order.id}'});return false;"
			value="发货">
		</h:commandButton>
		<h:commandButton styleClass="button larger"  rendered="#{orderViewAction.order.orderStatus eq 'DELIVERED'}"
			onclick="UI.instance.showDialog({id:'changeOrderShip', src:'/luyuan/sale/updateOrderForStorage.jsf?uuid=#{orderViewAction.order.id}'});return false;"
			value="修改快递">
		</h:commandButton>
		<h:commandButton styleClass="button larger"
			rendered="#{ orderViewAction.order.orderType == 'SINGLE_PRODUCT'}"
			onclick="window.open('#{ctx}/luyuan/sale/printProducts.jsf?orderId=#{orderViewAction.order.id}');return false;"
			value="打印">
		</h:commandButton>
		<h:commandButton styleClass="button larger"
			rendered="#{ orderViewAction.order.orderType == 'FORMULA'}"
			onclick="window.open('#{ctx}/luyuan/sale/printFormula.jsf?orderId=#{orderViewAction.order.id}');return false;"
			value="打印">
		</h:commandButton>
		<h:commandButton styleClass="button larger"  rendered="#{orderViewAction.order.orderStatus eq 'VERIFIED'}"
			onclick="UI.instance.showDialog({id:'returnedUpdate', src:'/luyuan/sale/updateOrderForStorageUpdating.jsf?uuid=#{orderViewAction.order.id}'});return false;"
			value="退回修改">
		</h:commandButton>
		<h:commandButton styleClass="button larger"
			action="/luyuan/sale/orderListForStorage.jsf" value="返回">
		</h:commandButton>
	</ui:define>

</ui:composition>